<%@ page language="java" contentType="application/xml; charset=GBK" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="com.probiz.estore.core.view.MessageContext" %>
<%
	ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(application);
	MessageContext messageContext = (MessageContext)ctx.getBean("messageContext");
	String salesAmount = messageContext.getMessage("report.salesAmount");
	String TransactionQuantity = messageContext.getMessage("report.TransactionQuantity");
	String reportMonth = messageContext.getMessage("report.month");
	request.setAttribute("salesAmount",salesAmount);
	request.setAttribute("TransactionQuantity",TransactionQuantity);
	request.setAttribute("reportMonth",reportMonth);
%>
<%-- 
柱状图+线图模板
--%>
<graph baseFontSize='12' caption='${caption}' subcaption="${subcaption}" PYAxisName='${salesAmount}' SYAxisName='${TransactionQuantity}' showvalues='0'  numDivLines='4' formatNumberScale='0' decimalPrecision='0'
anchorSides='10' anchorRadius='3' anchorBorderColor='009900'>
<categories>
   <c:forEach var="month" begin="1" end="12">
	 	<category name="${month}${reportMonth}"/>
   </c:forEach>
</categories>

<dataset seriesName='${salesAmount}' color='F6BD0F' showValues='0' numberPrefix='￥' >
   <set value='17400'/>
   <set value='19800'/>
   <set value='21800'/>
   <set value='23800'/>
   <set value='29600'/>
   <set value='27600'/>
   <set value='31800'/>
   <set value='39700'/>
   <set value='37800'/>
   <set value='21900'/>
   <set value='32900' />
   <set value='39800' />
</dataset>
<dataset seriesName='${TransactionQuantity}' color='8BBA00' showValues='0' parentYAxis='S'>
	<set value='200'/>
	<set value='300'/>
	<set value='500'/>
	<set value='350'/>
	<set value='700'/>
	<set value='1000'/>
	<set value='500'/>
	<set value='511'/>
	<set value='600'/>
	<set value='900'/>
	<set value='1002' />
	<set value='2000' />
</dataset>
</graph>